<%@page import="model.TagModel"%>
<%@page import="org.bson.types.ObjectId"%>
<%@page import="model.NewsModel"%>
<%@page import="entity.News"%>
<%@page import="util.ResourceHelper"%>
<%
  String id = request.getParameter("id");
  NewsModel newsModel = new NewsModel();
  TagModel tagModel = new TagModel();
  News n = newsModel.findById(new ObjectId(id));
%>
<%
	if(n.getTagged().size()>0){
%>
<div class="box-item tag-suggestion">
    <div class="box-item_inner">
        <h3 class="heading"><%=ResourceHelper.getByAlias("tu-khoa-lien-quan") %></h3>
        <div class="tag">
        	<%
	        	for (String string : n.getTagged()) {
	   			%>
					<a href="/tag/<%=string%>"><%=tagModel.findByAlias(string).getTitle() %></a>
	   			<%
	    		}
        	%>        	          
            <div class="clearbreak"></div>
        </div>
    </div>
</div>
<%
	}
%>